package com.kasax.utils;

import com.google.gson.Gson;

import org.json.JSONException;
import org.json.JSONObject;

public class GsonUtils {
    private static final Gson gson;

    static {
        gson = new Gson();
    }

    public static String deEnconde(String source) {
        try {
            return gson.toJson(new JSONObject(source));
        } catch (JSONException e) {
            return source;
        }
    }
}
